package domain;

import java.sql.Timestamp;

public class Actor {

    /**
     * `id` int NOT NULL AUTO_INCREMENT,
     *   `name` varchar(32) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
     *   `sex` char(1) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '女',
     *   `borndate` datetime DEFAULT NULL,
     *   `phone` varchar(12)
     */
    private Integer id;

    private String name;

    private String sex;

    private Timestamp borndate;

    private String phone;

    private Integer total;

    public Actor() {
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Timestamp getBorndate() {
        return borndate;
    }

    public void setBorndate(Timestamp borndate) {
        this.borndate = borndate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Actor{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", borndate=" + borndate +
                ", phone='" + phone + '\'' +
                '}';
    }
}
